#!/usr/bin/env bash
#!/usr/bin/env bash
#-------------------------------------------------------
#	FileName	: 调用iniread工具读取ini文件.sh
#	Author		：hpy
#	Date		：2020年11月10日
#	Description	：使用go写的iniread读取test.ini文件
#------------------------------------------------------- 
cd $(dirname $0)
# iniread 应用在 ../bin目录下 使用相对位置的方式调用
echo "test.ini 文件的内容："
echo
cat test.ini


#读取
echo
echo ------------------------
v=$(../bin/iniread test.ini mk RootDirFileName)   
echo "mk[RootDirFileName] = $v"

v=$(../bin/iniread test.ini tree FileType)   
echo "tree[FileType] = $v"

v=$(../bin/iniread test.ini tree Title)   
echo "tree[Title] = $v"

v=$(../bin/iniread test.ini tree Exec)   
echo "tree[Exec] = $v"

v=$(../bin/iniread test.ini tree TermName)   
echo "tree[TermName] = $v"